package com.shenhaofeng.app.http;

import android.view.SoundEffectConstants;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Arrays;


/**
 * Created by Administrator on 2016/10/14.
 */
public class EntryType<T> {

    private Class<T> cls;

    private EntryType[] entryTypes;


    public EntryType(Class<T> cls, EntryType<?>... entryTypes) {
        this.cls = cls;
        this.entryTypes = entryTypes;
    }


    public EntryType[] getEntryTypes() {
        return entryTypes;
    }


    public Type type() {
        ParameterizedType parameterizedType = (ParameterizedType) getClass().getGenericSuperclass();
        Type[] types = parameterizedType.getActualTypeArguments();
        System.out.println(Arrays.toString(types));
        return null;
    }

}
